@import "./ainmate.scss";
// @import "../font/iconfont.css";

.page-bottom {
  height: 10px;
  background-color: #f1f2f6;
  overflow: hidden;
}

.layout-warpper {
  width: 100%;
  height: 100%;
}

.layout-fullwidth .slider-wrapper {
  left: -260px;
}

.ivu-tabs-nav-container:focus .ivu-tabs-tab-focused {
  border-color: transparent !important;
}

// header
.header-nav-wrapper {
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#1278f6),
    to(#00b4aa)
  );
  background-image: -webkit-linear-gradient(left, #1278f6, #00b4aa);
  background-image: -moz-linear-gradient(left, #1278f6, #00b4aa);
  background-image: linear-gradient(to right, #1278f6, #00b4aa);
  box-sizing: border-box;
  height: 66px;
  width: 100%;
  z-index: 10;
  overflow: hidden;
  position: relative;
  .header-logo {
    position: absolute;
    left: 5px;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    .header-l-logo {
      height: 65%;
      width: 55px;
      > img {
        width: 100%;
        height: 100%;
      }
    }
    .header-l-title {
      overflow: hidden;
      line-height: 1.5;
      > h1 {
        font-size: 24px;
        font-weight: normal;
      }
    }
  }
  .header-nav-collapse {
    text-align: center;
    width: 100%;
    .nav-ul,
    ul.nomanage {
      > li {
        position: relative;
        float: none;
        display: inline-block;
        text-align: center;
        margin: 0 6px;
        a {
          position: relative;
          display: block;
          height: 100%;
          text-align: center;
          padding: 10px 15px 8px;
          font-size: 12px;
          box-sizing: border-box;
          font-weight: 400;
          color: rgba(255, 255, 255, 1);
          -webkit-transition: all 0.3s;
          -moz-transition: all 0.3s;
          transition: all 0.3s;
          &:hover {
            background-color: rgba(0, 0, 0, 0.1);
            color: #fff;
            transition: background-color 250ms ease-in-out;
          }
          span {
            font-size: 28px;
            width: 28px;
            height: 28px;
            display: block;
            margin: 0 auto 2px;
          }
          &.current {
            background-color: rgba(0, 0, 0, 0.1);
            color: #fff;
            transition: color 250ms ease-in-out,
              background-color 250ms ease-in-out;
          }
        }
      }
    }
    &.user {
      display: flex;
      justify-content: center;
    }
    .nomanage {
      display: flex;
      position: relative;
      text-align: center;
      &.nomanage-2 {
        overflow: hidden;
        color: #fff;
        height: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        > h2 {
          font-size: 40px;
          font-weight: bold;
        }
      }
    }
  }
}

// 路由视图
.router-view-wrapper {
  position: relative;
  overflow: hidden;
  height: calc(100% - 66px);
  background-color: #f1f2f6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.search-content {
  width: 100%;
  height: auto;
  overflow: hidden;
  .panel {
    &.search-panel {
      margin-bottom: 1px;
      .margin-left-20 {
        .ivu-form-item-content {
          margin-left: 20px !important;
        }
      }
    }
  }
}

@media screen and (max-width: 1300px) {
  .main_content {
    .scroll__content {
      &.history_content {
        height: calc(100% - 109px) !important;
      }
    }
  }
}

.main_content {
  .scroll__content {
    height: 100%;
    &.company_content {
      height: calc(100% - 55px);
    }
    &.device_content {
      height: calc(100% - 109px);
    }
    &.alarm_content {
      height: calc(100% - 55px);
    }
    &.uhistory_content {
      height: calc(100% - 55px);
    }
    &.history_content {
      height: calc(100% - 110px);
    }
    &.offline_content {
      height: calc(100% - 55px);
    }
    .scroll-content__row {
      overflow-y: auto;
      width: 100%;
      height: 100%;
    }
  }
}

.scroll__content {
  .scroll-content__row {
    .table-panel {
      .ivu-table-overflowX {
        // overflow-x: hidden;
      }
      .ivu-table-tip {
        overflow-x: hidden;
      }
    }
  }
}

// 面板默认设置
.panel {
  box-sizing: border-box;
  width: 100%;
  background-color: #fff;
  &.has-radius {
    border-radius: 5px;
  }
  &.search-panel {
    // padding: 5px 0;
  }
  &.table-panel {
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 20px;
  }
  &.page-panel {
    padding: 15px 20px 15px 0; // padding: 55px;
    height: 62px;
    overflow: hidden;
    position: relative;
    .page-title {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      margin-left: 50px;
      > p {
        font-size: 14px;
        color: #c3c3c3;
      }
    }
  } // 二级页面的顶栏
  &.content-header {
    position: relative;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #d2d3d4;
    padding-right: 16px;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    .title-bar {
      line-height: 30px;
      h5 {
        padding: 0;
        font-weight: bold;
        font-size: 14px;
        a,
        a:hover {
          color: #1276e5;
        }
        a {
          .fa {
            font-weight: bold;
            padding: 0 5px;
          }
        }
        .dashboard-card-sep {
          color: #ccc;
          font-size: 16px;
          padding: 0 8px;
        }
        .dashboard-card-name {
          color: #333;
        }
      }
      .ivu-breadcrumb {
        float: right;
        line-height: 30px;
        margin-right: 15px;
      }
    }
  }
}

// 表单居中
.ivu-form-inline .ivu-form-item {
  margin: 10px 0;
}

// 标签页面板
.tab-panel {
  box-sizing: border-box;
  padding: 5px 10px;
  background-color: #fff;
  .ivu-tabs-card > .ivu-tabs-content {
    margin-top: -16px;
  }
  .ivu-tabs-card > .ivu-tabs-content > .ivu-tabs-tabpane {
    background: #fff;
    padding: 16px;
  }
  .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab {
    border-color: transparent;
  }
  .ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active {
    border-color: #fff;
  }
}

.device-form-item__label {
  text-align: right;
  box-sizing: border-box;
  vertical-align: middle;
  display: inline-block;
  font-size: 14px;
  color: #48576a;
  line-height: 1;
  padding: 10px 12px 11px 0;
}

.map-panel {
  box-sizing: border-box;
  padding: 15px;
}

.demo-upload-list {
  display: inline-block;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  margin-right: 4px;
  img {
    width: 100%;
    height: 100%;
  }
  .demo-upload-list-cover {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
  }
  &:hover {
    .demo-upload-list-cover {
      display: block;
    }
  }
  .demo-upload-list-cover i {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin: 0 2px;
  }
}

.basicInfo-block {
  width: 100%;
  .basicInfo-item {
    line-height: 30px;
    display: block;
    padding: 0;
    margin: 0;
    float: left;
    font-size: 12px;
    &.name {
      padding: 0 5px 0 12px;
      font-weight: 700;
      width: 100px;
      text-align: right;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-wrap: normal; // color: #999;
    }
    &.value {
      zoom: 1;
      color: #333;
      float: left;
      position: relative;
      word-break: break-all;
    } // 文字超出省略号显示，使用html元素的title来显示全部文字
    &.autocut {
      width: 70%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      -o-text-overflow: ellipsis;
      -icab-text-overflow: ellipsis;
      -khtml-text-overflow: ellipsis;
      -moz-text-overflow: ellipsis;
      -webkit-text-overflow: ellipsis;
    }
  }
}

.asetting_content {
  width: 100%;
  height: 100%;
  .asetting_c-left {
    width: 210px;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    .asetting-l-nav {
      width: 100%;
      height: 100%;
    }
  }
  .asetting_c-right {
    width: calc(100% - 210px);
    height: 100%;
    .search-content {
      .search-panel {
        .margin-l {
          .ivu-form-item-content {
            margin-left: 20px !important;
          }
        }
      }
    }
    .setting-r-content {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      .setting-scroll__content {
        height: calc(100% - 55px);
        width: 100%;
        .setting-content__row {
          overflow-y: auto;
          height: 100%;
          width: 100%;
          .table-panel {
            .ivu-table-overflowX {
              overflow-x: hidden;
            }
            .ivu-table-tip {
              overflow-x: hidden;
            }
          }
        }
      }
      .setting-r-c_params {
        box-sizing: border-box;
        padding-bottom: 20px;
        .col_1 {
          box-sizing: border-box;
          padding: 10px;
          display: flex;
          align-items: center;
          overflow: hidden;
          background-color: #fff;
          border-bottom: 1px solid #c3c3c3;
          border-width: 90%;
          h2 {
            font-size: 16px;
            display: inline;
            font-weight: normal;
            margin-left: 10px;
          }
        }
        .col_2 {
          box-sizing: border-box;
          padding: 20px 10px;
          overflow: hidden;
          background-color: #fff;
          border-bottom: 1px solid #c3c3c3;
          .h3_title {
            margin-bottom: 20px;
            h3 {
              font-size: 16px;
              font-weight: bold;
            }
          }
          .button_add {
            .ivu-btn {
              padding: 5px 20px;
            }
          }
          .table_list {
            margin-top: 20px;
          }
        }
      }
    }
  }
}

// 设备详情
.adevice-detail {
  width: 100%;
  height: 100%;
  .adevice-detail-content {
    box-sizing: border-box;
    width: 100%;
    height: 100%; // padding: 15px;
    // min-width: 1300px;
    display: flex;
    .device-tab-panel-left {
      width: 100%;
      height: 100%;
      flex: 1;
    }
    .device-tab-panel-right {
      width: 600px;
      box-sizing: border-box; // height: 100%;
      height: 550px;
      padding-left: 10px;
      overflow: hidden;
      .chart {
        width: 100%;
        height: 49%;
        &:last-child {
          margin-top: 2%;
        }
      }
    }
  }
}

// 热成像监控/数据详情
.video-device-detail {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 10px;
  padding-bottom: 20px;
  .clo_14 {
    height: 100%;
    .v-d-14-head {
      overflow: hidden;
    }
    .v-d-14-body {
      height: calc(100% - 120px);
      max-height: 500px;
      overflow-y: auto;
      box-sizing: border-box;
      &.height {
        height: 500px;
      }
    }
  }
  .col_10 {
    height: 100%;
    position: relative;
    padding: 2%;
    box-sizing: border-box;
    .v-d-10-body {
      height: 100%;
      width: 100%;
      position: relative;
      .w1 {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .box {
        height: 300px;
        width: 100%;
        &.center {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          margin-bottom: 0;
        }
        &:first-child {
          margin-bottom: 20px;
        }
      }
    }
  }
}

.adivice-info {
  width: 100%;
  height: 100%;
  position: relative;
  .adevice-tab-panel {
    height: calc(100% - 42px);
    .ivu-tabs-no-animation > .ivu-tabs-content {
      transform: none !important;
      overflow-y: auto;
      height: calc(100% - 52px);
    }
  }
}

.acompany-info {
  width: 100%;
  height: 100%;
  position: relative;
  .acompany-tab-panel {
    height: calc(100% - 42px);
    .ivu-tabs-no-animation > .ivu-tabs-content {
      transform: none !important;
      overflow-y: auto;
      height: calc(100% - 42px);
    }
  }
}

.adevice-collectparams,
.video-device-setalarm,
.video-device-collect {
  width: 100%;
  height: 100%;
  padding: 10px 30px;
  box-sizing: border-box;
  position: relative;
  h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }
}

.margin-left-none {
  &.ivu-form-item {
    .ivu-form-item-content {
      margin-left: 0 !important;
    }
  }
}

.custom-input-error {
  .ivu-input-small {
    border: 1px solid #ed4014;
  }
}

.custom-error-title {
  display: block;
  color: #ed4014;
  font-size: 12px;
  line-height: 2;
  transform: scale(0.9);
}

.custom-modal-padding-10 {
  .ivu-modal-body {
    padding: 10px;
  }
}

// 数据中心
.dashboard-container {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  user-select: none;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1s 0.2s ease both;
  .demo-login-out {
    color: #fff;
    position: absolute;
    left: 20px;
    padding: 10px 16px;
    top: -9px;
    font-size: 30px;
    background: rgba(5, 64, 135, 0.6);
    font-weight: bold;
    z-index: 111;
  }
  .dashboard-head {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    right: 0;
    height: 66px;
    width: 100vw;
    display: flex;
    padding: 0 0.1vw;
    z-index: 4;
    .header_title {
      color: #fff;
      width: 33%;
      margin: 0 auto;
      display: table;
      height: 100%;
      position: relative;
      img {
        position: absolute;
        width: 100%;
        height: 100%;
        &.left {
          top: 0;
          left: -25.6vw;
        }
        &.right {
          top: 0;
          right: -26vw;
        }
      }
      h2 {
        font-weight: normal;
        display: table-cell;
        vertical-align: middle;
        font-size: 2vw;
        text-align: center;
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
      }
    }
  }
  .dashboard-button {
    z-index: 4;
    position: fixed;
    top: 0;
    right: 5px;
    border: 0 none;
    padding: 0 10px;
    font-size: 2vw;
    background: none;
    color: #fff;
  }
  .dashboard-map {
    height: 100%;
    width: 100%;
    z-index: 3;
  }
  .dashboard-left {
    display: flex;
    position: fixed;
    z-index: 4;
    left: 2%;
    top: 60px;
    bottom: 0;
  }
  .dashboard-right {
    display: flex; // width: 30vw;
    position: fixed;
    z-index: 4;
    right: 2%;
    top: 60px;
    bottom: 0; // background-color: #fff;
  }
  .control-wrapper {
    z-index: 10;
    position: absolute;
    width: 30vw;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #daf6ff;
    text-shadow: 0 0 20px #0aafe6, 0 0 20px rgba(10, 175, 230, 0);
    text-align: center;
    h2.title {
      font-size: 3vw;
      margin: 0;
      display: inline-block;
    }
    p.subtitle {
      display: inline-block;
      span {
        font-size: 1.5vw;
        margin-left: 0.3vw;
        font-family: ds-digitalnormal;
      }
    }
  }
  .count-wrapper {
    position: absolute;
    box-sizing: border-box;
    padding: 0.8vh 1vw;
    z-index: 10;
    background: linear-gradient(to left, #60fffe, #60fffe) left top no-repeat,
      linear-gradient(to bottom, #60fffe, #60fffe) left top no-repeat,
      linear-gradient(to left, #60fffe, #60fffe) right top no-repeat,
      linear-gradient(to bottom, #60fffe, #60fffe) right top no-repeat,
      linear-gradient(to left, #60fffe, #60fffe) left bottom no-repeat,
      linear-gradient(to bottom, #60fffe, #60fffe) left bottom no-repeat,
      linear-gradient(to left, #60fffe, #60fffe) right bottom no-repeat,
      linear-gradient(to left, #60fffe, #60fffe) right bottom no-repeat;
    background-size: 0.1vw 1.5vw, 1.5vw 0.1vw, 0.1vw 1.5vw, 1.5vw 0.1vw;
    height: 15vh;
    bottom: 4%;
    left: 28%;
    font-family: "ds-digitalnormal";
    font-size: 0.8vw;
    color: #60fffe;
    text-shadow: 0 0 20px #0aafe6, 0 0 20px rgba(10, 175, 230, 0);
    .single-count {
      span {
        font-size: 1.6vw;
        margin: 0 0.5vw;
      }
    }
  }
}

// 代理商页面
.agent-page-head {
  height: 60px;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  line-height: 60px;
  z-index: 1;
  h2 {
    color: #fff;
    font-size: 2vw;
    display: inline-block;
  }
}

.ivu-drawer-top {
  .ivu-drawer-wrap {
    .ivu-drawer.ivu-drawer-right {
      top: 102px;
      .ivu-drawer-body {
        height: calc(100% - 64px);
      }

      .analyise-search-body {
        padding-bottom: 53px;
        position: static;
        .time-picker {
          width: 100%;
          margin-bottom: 18px;
          .ivu-input {
            height: 36px;
          }
        }
        .vue-treeselect__control {
          border-color: #dcdee2;
          border-radius: 4px;
        }
        .drawer-footer {
          margin-left: -16px;
          margin-right: -16px;
          width: 100%;
          position: absolute;
          bottom: 100px;
          left: 0;
          border-top: 1px solid #e8e8e8;
          padding: 10px 16px;
          text-align: right;
          background: #fff;
        }
      }
    }
  }
}

.ivu-select-dropdown {
  max-height: 300px !important;
}

.dialog-form-fade-enter-active,
.dialog-form-fade-leave-active {
  transition: opacity 0.5s;
}
.dialog-form-fade-enter,
.dialog-form-fade-leave-to {
  opacity: 0;
}
